import { Entity, Column, Unique, Index } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('global_config')
export class GlobalConfig extends BaseEntity {
    @Column({ length: 32, comment: 'key' })
    key: string

    @Column({ length: 256, comment: 'value' })
    value: string

    @Column({ length: 256, comment: '备注' })
    note: string

    @Column({ length: 32, comment: '所属ID' })
    affiliationid: string

    @Column('int', { comment: '所属类型：0企业1项目' })
    affiliationType: number
}
